<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> 
<#import "../baseftl/page.ftl" as comm />
<html>
  <head>
    <title>上传下载</title>
  </head>
  <body>
    <table class="listView">
		<tr>
			<th><a href="${base}/demo/up-or-down/list/orderBy/uploadOldName/order/
			<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml
			"><b>文件名</b></a></th>
			<th><b>文件说明</b></a></th>
			<th><b>上传人</b></a></th>
			<th><a href="${base}/demo/up-or-down/list/orderBy/insertDate/order/
			<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml
			"><b>上传日期</b></a></th>
			<th><b>文件大小</b></th>
			<th><b>操作</b></th>
		</tr>
	
	<#list page.result as list>
    	<tr>
				<td nowrap="nowrap">${list.uploadOldName?default("")}&nbsp;</td>
				<td nowrap="nowrap">${list.uploadFileBeizhu?default("")}&nbsp;</td>
				<td nowrap="nowrap">${list.uploadFileAuthor?default("")}&nbsp;</td>
				<td nowrap="nowrap">${list.insertDate?default("")}&nbsp;</td>
				<td>${list.uploadFileSize?default("")}&nbsp;</td>
				<td nowrap="nowrap">&nbsp;
					<@security.authorize ifAnyGranted="RES_FILE_DELETE">
					<a href="${base}/demo/up-or-down/delete/${list.id?default("")}.shtml">删除</a>&nbsp;
					</@security.authorize>
					<a href="${base}/demo/up-or-down/down/${list.id?default("")}.shtml">下载</a>&nbsp;
				</td>
		</tr>
    </#list>
	</table>
	<@comm.pages/><a href="${base}/demo/up-or-down/input.shtml">上传文件</a>
	<@s.actionmessage />
  </body>
</html>
